    <div id="{$id}" class="easyui-dialog" style="width:650px; height:480px;padding:10px 20px"
            closed="true" buttons="#{$id}-buttons">
        <div class="ftitle">{$_form.name}</div>
        <form id="{$id}-form" method="post" novalidate>
		{foreach from=$_fields item=field key=k}
		{if $field.isField eq 1}
		{if $field.displayType eq "hidden"}
        	<input type="hidden" id="f-{$id}-{$field.name}" name="{$field.name}">
		{elseif $field.displayType eq "password"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
                <input type='password' id="f-{$id}-{$field.name}" name="{$field.name}"  class="easyui-textbox" {if $field.isRequired eq 1}required{/if} style="width:{$field.name | default:'300px'}">
            </div>
		{elseif $field.displayType eq "combobox"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>	
                <input id="f-{$id}-{$field.name}" name="{$field.name}" style="cursor:hand;width:400px" class="easyui-combobox" {if $field.isRequired eq 1}required{/if}
			        data-options="   
				        valueField: '{$field.valueField}',   
				        textField: '{$field.textField}', 
				        value:'{$field.value | default:''}',
				        url: '{$field.dsUrl}',   
				        onSelect: eventComboboxOnSelect('{$field.name}')" />
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
		{elseif $field.displayType eq "combotree"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
                <input id="f-{$id}-{$field.name}" name="{$field.name}" style="cursor:hand;width:400px" class="easyui-combotree" {if $field.isRequired eq 1}required{/if}
			        data-options="   
				        valueField: '{$field.valueField}',   
				        textField: '{$field.textField}', 
				        value:'{$field.value | default:''}',
				        url: '{$field.dsUrl}',   
				        onSelect: eventComboboxOnSelect('{$field.name}')" />
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
		{elseif $field.displayType eq "checkbox"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
				{widget template="common/form_checkbox.tpl" moduleId="`$field.dsModuleId`" serviceId="`$field.dsServiceId`" params="_fieldName=`$field.name`;_valueField=`$field.valueField`;_textField=`$field.textField`" }
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
        {elseif $field.displayType eq "radio"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
				{widget template="common/form_radio.tpl" moduleId="`$field.dsModuleId`" serviceId="`$field.dsServiceId`" params="_fieldName=`$field.name`;_valueField=`$field.valueField`;_textField=`$field.textField`" }
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
		{elseif $field.displayType eq "textarea"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
                <textarea id="f-{$id}-{$field.name}" name="{$field.name}" class="easyui-validatebox" rows={$field.rows|default:'5'} cols={$field.rows|default:'50'} {if $field.isRequired eq 1}required{/if}></textarea>
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
        {elseif $field.displayType eq "htmleditor"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
		        <textarea id="f-{$id}-{$field.name}" name="{$field.name}" rows={$field.rows|default:'5'} cols={$field.rows|default:'50'} style="width: 90%; height: 300px; visibility: hidden;"></textarea>
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
        {elseif $field.displayType eq "date"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
                <input id="f-{$id}-{$field.name}" name="{$field.name}"  class="easyui-datebox" data-options="formatter:date_formatter,parser:date_parser" {if $field.isRequired eq 1}required{/if} style="width:{$field.width | default:'75%'}" {if $field.readonly eq 'true'}editable=false{/if}>
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
        {elseif $field.displayType eq "datetime"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
                <input id="f-{$id}-{$field.name}" name="{$field.name}"  class="easyui-datetimebox" data-options="" {if $field.isRequired eq 1}required{/if} style="width:{$field.width | default:'75%'}" {if $field.readonly eq 'true'}editable=false{/if}>
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
        {elseif $field.displayType eq "number"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
                <input id="f-{$id}-{$field.name}" name="{$field.name}"  class="easyui-numberbox" data-options="groupSeparator:' ',decimalSeparator:','" {if $field.isRequired eq 1}required{/if} style="width:{$field.width | default:'75%'}" {if $field.readonly eq 'true'}editable=false{/if}>
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
		{elseif $field.displayType neq "reference" and $field.isField neq "false"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
                <input id="f-{$id}-{$field.name}" name="{$field.name}"  class="easyui-textbox" {if $field.isRequired eq 1}required{/if} style="width:{$field.width | default:'75%'}" {if $field.readonly eq 'true'}editable=false{/if}>
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
		{/if}
		{/if}
		{/foreach}
        </form>
    </div>
    <div id="{$id}-buttons">
        <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="saveOne('{$id}')" style="width:90px">保存</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#{$id}').dialog('close')" style="width:90px">取消</a>
    </div>